package cn.lbwfree.day3_16;

import java.util.Scanner;

/**
 * @date:2020年3月16日
 * @author:lbwfree
 */
public class pascal_triangle {
	public static void main(String[] args) {
		Scanner iScanner = new Scanner(System.in);
		int num =iScanner.nextInt();
		int[][] arrays =new int[num][];
		for (int i = 0; i < num; i++) {
			arrays[i]=new int [i+2];
			for (int j = 0; j <=i; j++) {
				if(j==0)
				{
					arrays[i][0]=1;
					System.out.print(arrays[i][0]+" ");
				}
				else {
					arrays[i][j]=arrays[i-1][j-1]+arrays[i-1][j];
					System.out.print(arrays[i][j]+" ");
				}
			}
			System.out.println();
		}
		
	}

}
